package Controller.Game;
import View.*;
import Model.Beat.BeatModelInterface;
import Model.Game.*;
public class GameController implements ControllerInterface{
	
	private BeatModelInterface model;
	
	private DJView view;
	

	public GameController(BeatModelInterface model) {
		this.model = model;
		
		view = new DJView(this,this.model);
        view.createView();
        view.createControls();
		view.disableStopMenuItem();
		view.disableStartMenuItem();
	}
	
	
	@Override
	public void start() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void stop() {
		// TODO Auto-generated method stub
		
	}
	
	public void reset(){
		((GameModel)this.model).reset();
	}
	

	@Override
	public void increaseBPM() {
		((GameModel)this.model).increaseBPM();	
	}
	
	public int getBPM(){
		return this.model.getBPM();
	}

	@Override
	public void decreaseBPM() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void setBPM(int bpm) {
      this.model.setBPM(bpm);		
	}
	
	

}
